package com.designPattern.adapter.adapter;

import com.designPattern.adapter.controller.HttpController;

public class HttpAdapter implements Adapter {
    @Override
    public boolean supports(Object handler) {
        return (handler instanceof HttpController);
    }

    @Override
    public void handle(Object handler) {
        //调用handler中的方法
        ((HttpController)handler).doHttpController();
    }
}
